package Card;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-02-01
 * Time:9:30
 */
public class Card {
    public int rank;  //牌面的值
    public String suit;  //花色

    Card(int rank,String suit) {
        this.rank = rank;
        this.suit = suit;
    }

    public void swap() {

    }

    @Override
    public String toString() {
        return suit + ":" + rank + " ";
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public String getSuit() {
        return suit;
    }

    public void setSuit(String suit) {
        this.suit = suit;
    }
}
